{% load i18n %}
{% include 'django_facebook/_facebook_js.html' %}
<div class="modal-header">
	<h3 class="modal-title login-modal-title">{% trans "Log in" %}</h3>
</div>
<div class="modal-body">
	<button type="button" class="btn btn-primary btn-large" >Login with Facebook</button>
	<button type="button" class="btn btn-danger btn-large">Logout</button>

	<form action="{% url 'facebook_connect' %}?facebook_login=1" method="post">
    <input type="hidden" value="{{ request.path }}" name="next" />
    <input type="hidden" value="{{ request.path }}" name="register_next" />
    <input type="hidden" value="{{ request.path }}" name="error_next" />
    {% csrf_token %}
    <input onclick="F.connect(this.parentNode);return false;" ng-click="ok()" type="image" src="{{ STATIC_URL }}django_facebook/images/facebook_login.png" />
	</form>
</div>
<div class="modal-footer">
	<button class="btn btn-primary" ng-click="ok()">OK</button>
	<button class="btn btn-warning" ng-click="cancel()">Cancel</button>
</div>
